﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace class1
{//商贩 NPC 
    //武器  材料  食物
    class shopType : NPC
    {
        protected string shoptype;
        public string Shoptype
        {
            get { return this.shoptype; }
            set { this.shoptype = value; }
        }
        public shopType(string name, NPCType nPCType,string shoptype)
            :base(name,nPCType)
        {
            this.shoptype = shoptype;
        }
        public override void speck()
        {
            Console.WriteLine("我叫："+this.name );
            Console.WriteLine("我是："+this.npcType+"类型的");
            Console.WriteLine("你需要购买什么嘛！我专门卖："+this.shoptype);
            Console.WriteLine("走过路过不要错过！");
        }
    }
}
